<template>

	<view class="" style="background-color: #eee;height: 100vh;box-sizing: border-box;padding: 2rem 1rem;overflow: auto;">
		<view class="tonghi" v-for="(item, index) in indexList" :key="index" >
			<view class="timxians">
			当前身份：	{{ item.currentIdentity }}
			</view>
			<view class="timxians1">审核时间： {{ item.createTime }}</view>
			<view class="shenhe" v-if="item.status==1">审核状态：<view class="shenhe1">审核中</view></view>
			<view class="shenhe" v-if="item.status==2">审核状态：<view class="shenhe2">同过</view></view>
			<view class="shenhe" v-if="item.status==3">审核状态：<view class="shenhe3">驳回</view> </view>
		
		</view>
		<u-toast ref="uToast"></u-toast>
	
	</view>
</template>

<script>
import {
	baseUrl
} from '../../utils/config.js';
export default {
	data() {
		return {
			indexList: [],

		}
	},
	onLoad() {
		this.loadmore()
	},
	methods: {
		scrolltolower() {
			this.loadmore()
		},
		loadmore() {
			var thas = this
			uni.request({
				url: `${baseUrl}/wechat/InfoIdentityUp/listUserByUser`,
				method: 'GET',
				header: { taken: uni.getStorageSync('ykt_openId') },
				success(res) {
					thas.indexList = res.data.data
				},

			});

		},
		handleClick1(row) {
			console.log(row,"322")
			if (!row.totalScore) {
				this.$refs.uToast.show({
					type: 'default',
					message: "已提交，请选择其他题目进行答题",
				})
				return
			}
			uni.navigateTo({
				url: `/pages/special/xuexiS?id=${row}`
			});
		}
	},
}
</script>

<style scoped lang="scss">
	.tonghi {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		color: #333;
		border-bottom: 1px solid #eee;
		padding: 10px 10px;
		background-color: #fff;
		border-radius: 0.4rem;
		margin-bottom: 2rem;
		border: 1px solid #fff;
		padding: 1rem 1rem;
		position: relative;
	}
	
	.timxians {
		font-size: 16px;
		font-weight: 600;
		width: 100%;
	
	}
	
	.timxians1 {
		font-size: 16px;
		width: 100%;
		
	}
	
	.timxians2 {
		font-size: 14px;
		width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.buttom{
		position: absolute;
		background-color: #2979ff;
		color: #fff;
		border-radius: 0.2rem;
		padding: 5px 10px;
		right: 10px;
		bottom: 10px;
	}
	.shenhe{
		padding: 3px 5px;
		border-radius: 0.2rem;
		display: flex;
	}
	.shenhe1{
		padding: 3px 5px;
		border-radius: 0.2rem;
		background-color:#ff9900 ;
		color: #fff;
		width: 60px;
		text-align: center;
	}
	.shenhe2{
		padding: 3px 5px;
		border-radius: 0.2rem;
		background-color:#19be6b ;
		color: #fff;
		width: 30px;
	}
	.shenhe3{
		padding: 3px 5px;
		border-radius: 0.2rem;
		background-color:#fa3534 ;
		color: #fff;
		width: 30px;
	}
</style>